package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.service.DConvertLService;
/**
 * keyongjin
 * 2021-08-08
 * */
@RestController
public class DConvertLController {
	@Autowired
	private DConvertLService dConvertLService;
	
	@GetMapping("/getD2L/{pin}")
	public ResponseEntity<String> getD2L(@PathVariable(value = "pin")int pin) {
		return ResponseEntity.ok(dConvertLService.DconvertL(pin));
	}

}
